<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script src="js/Ajax.js" type="text/javascript"></script>
<script type="text/javascript">
	function tt(){
		var xhr=Ajax.request('/ajax/ts',{
			async:false,
			method:'GET',
			data:'a=hc&b=汉字',
			success:function(xhr){
				alert(xhr.responseText);
			},
			failure:function(xhr){
				alert('Ajax请求失败');
			}
		});
		alert(xhr.responseText);
		alert('xxx');
	}
</script>
</head>
<body>
<div style="position: absolute; top: 50%; left: 50%"><input
	type="button" value="ajax请求" onclick="tt();"></div>
</body>
</html>